package com.htiiot.config;

import com.htiiot.tools.ProUtil;

public class Configs {
    public static final class HdfsConfig{
        public static String HDFS_PATH = ProUtil.getInstance().getValue("hdfs.path");
        public static String HDFS_ROOT_PATH = ProUtil.getInstance().getValue("hdfs.root.path");
    }
    public static final class KafkaConfig{
        public static String BOOTSTRAP = ProUtil.getInstance().getValue("bootstrap.server");
        public static String TOPIC = ProUtil.getInstance().getValue("topic");
        public static String GROUPID = ProUtil.getInstance().getValue("group.id");
    }

    public static String getInfo() {
        return "Configs{\r\n"+
                "HDFS_PATH=" + HdfsConfig.HDFS_PATH +"\r\n" +
                "HDFS_ROOT_PATH=" + HdfsConfig.HDFS_ROOT_PATH +"\r\n" +
                "BOOTSTRAP=" + KafkaConfig.BOOTSTRAP +"\r\n" +
                "TOPIC=" + KafkaConfig.TOPIC +"\r\n" +
                "GROUPID=" + KafkaConfig.GROUPID +"\r\n" +
                "}";
    }
}
